import request from "@/utils/request";
// export const reqHomeData = () => request({ url: "/xhr/index.json", method: "get" });
// 获取首页数据
export const reqHomeData = () => {
  return request({
    url: "/xhr/index.json",
    method: "get",
  });
};
// 获取频道数据
// export const reqCategoryData=()=>request({url:'/item/list.json',method: "get"})
// export const reqCategoryData = () => {
//   return request({
//     url: "/item/list.json?__timestamp=1630136511866&categoryId=1005000",
//     method: "get",
//   });
// };
// 根据分类ID获取分类的列表
export const reqNavList = () => request({ url: "/item/cateList.json", method: "get" });
// 获取分类下的商品列表
export const reqgoodsList=(categoryId)=>request({url:`/item/list.json?timestamp=1630133942864&categoryId=${categoryId}`, method: "get"})
